@model IViewModel

<h2> Sorry, an error occurred while processing your request. </h2>
@if (!ViewContext.HttpContext.IsCustomErrorEnabled)
{
 <h3> Exception details: </h3>
  <div >
    @foreach (var message in Model.Messages)
    {
        <div><b>@message.Reporter</b>:@message.Text</div>
        <pre>@(message.DebugDetails ?? string.Empty)</pre>
    }
  </div>
}
else
{
  <div>Please, contact the application <b>administrator</b></div>
}